import {Component} from 'react';
import bus from '../utils/bus';
import headercss from './myheader.module.css'
class Myheader extends Component{
    render(){
        return(
            <div className={headercss.header}>
                <div>
                <i className="fa fa-bars fa-lg" onClick={()=>{
                    bus.emit("isshow")
                }}></i> <span className={headercss.title}>{this.props.children}</span> 
                </div>
                <div>
                <i className="fa fa-user fa-lg"></i> 
                </div>
            </div>
        )
    }
}
export default Myheader;